Coding Python : The Ultimate Tool To Progress Your Python Programming From Good To Great While Making Coding In Scratch Look Easy (Python programming language) by Scratch Michael & Erik
***Use Your Discretion Here And Write Your Code First***
Now, check your code against the correct code below:
A = [â redâ, âoliveâ, âcyanâ, âlilacâ, âmustardâ]
print (A [-2])
OUTPUT â [âlilacâ]
Exercise â Create a list âAâ with string data values as âred, olive, cyan, lilac, mustardâ and display the items ranging from the string on the second position to the end of the string.
***Use Your Discretion Here And Write Your Code First***
Now, check your code against the correct code below:
A = [âredâ, âoliveâ, âcyanâ, âlilacâ, âmustardâ]
print (A [2 : ])
OUTPUT â [ âcyanâ, âlilacâ, âmustardâ]
Exercise â Create a list âAâ with string data values as âred, olive, cyan, lilac, mustardâ and replace the string âoliveâ with âteal.â
Coding Python : The Ultimate Tool To Progress Your Python Programming From Good To Great While Making Coding In Scratch Look Easy (Python programming language) by Scratch Michael & Erik.pdf